package ar.edu.itba.it.cg.grupo01.impl.shape.shader;

import java.awt.Color;

import javax.vecmath.Point3f;

import ar.edu.itba.it.cg.grupo01.api.shape.Shape;
import ar.edu.itba.it.cg.grupo01.impl.RayTraceInformation;


public class ConstantShader extends Shader {
	private Color color;
	
	public ConstantShader(Color color) {
		this.color = color;
	}

	@Override
	public float getReflectionK() {
		return 1.0f;
	}

	@Override
	public Color getShadeColor(Shape shape, Point3f intersectionPoint) {
		return color;
	}

	@Override
	public void shade(RayTraceInformation info) {
		info.getReflectionColor().set(color);
	}

}
